.iconSize(@filename) {
  @url: @filename;
  @width: image-width(@url);
  @height: image-height(@url);
  width: @width;
  height: @height;
  background-image: url(@url);
}

.icon {
  display: inline-block;
  background-size: 100%;
}

.icon-search {
  .iconSize('search.png');
}
